package com.builder.self;

public class CompanyDirector {

    private CompanyBuilder companyBuilder;

    public CompanyDirector(CompanyBuilder companyBuilder) {
        this.companyBuilder = companyBuilder;
    }

    public void setCompanyBuilder(CompanyBuilder companyBuilder) {
        this.companyBuilder = companyBuilder;
    }

    public Company constructCompany(){
        this.companyBuilder.recruit();
        this.companyBuilder.consistSector();
        this.companyBuilder.enlistManager();
        return this.companyBuilder.getCompany();
    }
}
